package com.smfx.yxt;

import java.util.List;

import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;

import com.alibaba.fastjson.JSONObject;
import com.smfx.yxt.model.TeacherOrganizeGroup;
import com.smfx.yxt.service.IOrganizeDepartService;

public class DepartService extends BaseTest {
	
	private Logger logger = LoggerFactory.getLogger(DepartService.class);

	@Autowired
	private IOrganizeDepartService organizeDepartService;
	
	@Test
	public void aa() {
		List<TeacherOrganizeGroup> list = organizeDepartService.fillTeacherOrganize(1);
		logger.info("--info={}", JSONObject.toJSONString(list));
	}
	
	@Test
	public void ab() {
		try {
			List<TeacherOrganizeGroup> list = organizeDepartService.fillTeacherOrganizeByPositionIds("1001,2001", 1);
			logger.info("--info={}", JSONObject.toJSONString(list));
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
	
	/*@Test
	public void bb() {
		try {
			List<StudentOrganize> list = studentService.fillStudentOrganize(2010);
			System.out.println(JSONObject.toJSONString(list));
		} catch (Exception e) {
			e.printStackTrace();
		}
	}*/
}
